<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%String path = request.getContextPath();%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/ui.tld" prefix="ui" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>查询赎回申请信息</title>
    <jsp:include page="../../import.jsp" flush="true"/>
    <%--<jsp:include page="assParkCommon.jsp" flush="true" /><!-- 时间格式转换 -->--%>
</head>
<body class="iframeBody">
<div class="Wrapper">
    <div>
        <div class="sqPanel">
            <div class="sqPanel_head inL">
                <span>--------项目及还款信息--------</span>
            </div>
        </div>
        <div id="pageInTab" class="pageInTab">
            <div class="fieldset1 tabel_col clearFix">
                <div class="fieldBox col_33">
                    <div class="label">合同编号</div>
                    <div class="field">
                        <span name="lsCntNo" id="lsCntNo">${redm.lsCntNo}</span>
                    </div>
                </div>
                <div class="fieldBox col_33">
                    <div class="label">承租人名称</div>
                    <div class="field">
                        <span>${redm.cstNm}</span>
                    </div>
                </div>
                <div class="fieldBox col_33">
                    <div class="label">第三方机构</div>
                    <div class="field">
                        <span>${redm.fundRasInsNm}</span>
                    </div>
                </div>
                <div class="fieldBox col_33">
                    <div class="label">租赁期数</div>
                    <div class="field">
                        <span name="fundRasInsNm" id="fundRasInsNm">${redm.lsPd}</span>
                    </div>
                </div>
                <div class="fieldBox col_33">
                    <div class="label">合同总金额</div>
                    <div class="field">
                        <span>${redm.contAmt == null ? 0 : redm.contAmt/100}</span>
                    </div>
                </div>
                <div class="fieldBox col_33">
                    <div class="label">融资总金额</div>
                    <div class="field">
                        <span>${redm.actLsAmt == null ? 0 : redm.actLsAmt/100}</span>
                    </div>
                </div>
                <div class="fieldBox col_33">
                    <div class="label">实际应收金额</div>
                    <div class="field">
                        <span>${redm.relActAmt == null ? 0 : redm.relActAmt/100}</span>
                    </div>
                </div>
                <div class="fieldBox col_33">
                    <div class="label">应收租金合计</div>
                    <div class="field">
                        <span>${redm.totalActAmt == null ? 0 : redm.totalActAmt/100}</span>
                    </div>
                </div>
                <div class="fieldBox col_33">
                    <div class="label">实收租金合计</div>
                    <div class="field">
                        <span>${redm.totalRelRcptAmt == null ? 0 : redm.totalRelRcptAmt/100}</span>
                    </div>
                </div>
                <div class="fieldBox col_33">
                    <div class="label">逾期金额</div>
                    <div class="field">
                        <span>${redm.ovdAmt == null ? 0 : redm.ovdAmt/100}</span>
                    </div>
                </div>
                <div class="fieldBox col_33">
                    <div class="label">罚息金额</div>
                    <div class="field">
                        <span>${redm.pnlAmt == null ? 0 : redm.pnlAmt/100}</span>
                    </div>
                </div>
                <div class="fieldBox col_33">
                    <div class="label">逾期天数</div>
                    <div class="field">
                        <span>${redm.ovdDay == null ? 0 : redm.ovdDay}</span>
                    </div>
                </div>
            </div>

            <div class="sqPanel">
                <div class="sqPanel_head inL">
                    <span>--------项目产品信息及放款信息--------</span>
                </div>
            </div>
            <!-- 列表显示块 -->
            <div id="ligergrid3" class="sq-grid"></div>
            <!--赎回原因-->
            <div class="sqPanel">
                <div class="sqPanel_head inL">
                    <span>--------赎回原因--------</span>
                </div>
            </div>
            <div class="fieldset1 tabel_col clearFix">
                <div class="fieldBox col_33">
                    <div class="label">赎回原因</div>
                    <div class="field">
                        <span>${redm.insRedmResonNm}</span>
                    </div>
                </div>
                <div class="fieldBox col_33">
                    <div class="label">具体原因</div>
                    <div class="field">
                        <span>${redm.insRedmDetailResonNm}</span>
                    </div>
                </div>
                <div class="fieldBox col_100">
                    <div class="label">其他原因</div>
                    <div class="field" style="width: 100%;">
                        <span>${redm.otherInsRedmReson}</span>
                    </div>
                </div>
                <!-- 附件显示 -->
                <div class="fieldBox col_100">
                    <div style="width: 98%; margin-left: 1%;">
                        <jsp:include page="../../system/sysUlFilesRec/sysUlFileRecList.jsp" flush="true" >
                            <jsp:param name="pkId" value="${pkId}"/>
                            <jsp:param name="tabNm" value="${tabNm}"/>
                        </jsp:include>

                    </div>
                </div>
            </div>
            <!-- hide data -->
            <div class="fieldBox col_100" style="display: none;">
                <div class="field">
                    <input name="prjId" id="prjId" type="text" class="ui-textbox" value="${redm.prjId}">
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    var repayGrid = null;
    var vfGrid = null;
    $(function () {
        initGrid();
    });

    //初始化列表
    function initGrid() {
        var prjId = $("#prjId").val();
        $("#ligergrid3").ligerGrid({
            // data: data,
            method: 'get',
            url: '<%=path%>/institution/prjinsredminfo/initPrjDtlInfo.do?prjId=' + prjId,
            columns: [
                {display: '支付表号', name: 'paySchNo', width: 200, enabledSort: true,},
                {
                    display: '我司是否已放款', name: 'isOCPay', width: 200, enabledSort: true,
                    render: function (rowdata, rowindex, value, column) {
                        var h = "";
                        if (rowdata.isOCPay == 0) {
                            h = "否";
                        }
                        if (rowdata.isOCPay == 1) {
                            h = "是";
                        }
                        return h;
                    }
                },
                {display: '设备名', name: 'prdNm', width: 200, enabledSort: true,},
                {display: '车辆型号', name: 'prdMdl', width: 200, enabledSort: true},
                {display: '合格证编号', name: 'certNo', width: 200, enabledSort: true},
                {display: 'VIN', name: 'vin', width: 200, enabledSort: true}
            ],
            onAfterShowData: function (e) {
                var rows = e.rows;
                var i = 0;
                for (var index in rows) {
                    i += rows[index].arAmt;
                }
                $("#arAmts").text(i);
            },
            usePager: false,//是否有分页便签
            root: 'rows',
            record: 'total',
            hideLoadButton: false,
            width: '100%',
            height: '100%',
            heightDiff: -2,
            isScroll: true,//是否有滚动条
            checkbox: false,//列表是否有选择框
            enabledEdit: true,//是否能编辑
            rownumbers: true//列表是否有行号
        });
        repayGrid = liger.get("ligergrid3");
        //grid.setHeight(100);
        repayGrid.options.isSingleCheck = true;//列表是否为单选
    }


</script>
</body>
</html>